package com.zxc.gulimall.order.feign;

import com.zxc.common.utils.R;
import com.zxc.gulimall.order.vo.WareSkuLockVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "ware-service")
public interface WmsFeignService {

    @PostMapping(value = "/ware/waresku/hasstock")
    public R hasStock(@RequestBody List<Long> skuIds);

    @GetMapping(value = "/ware/wareinfo/fare")
    public R getFare(@RequestParam(value = "addrId") Long id);

    @PostMapping(value = "/ware/waresku/lock/order")
    public R orderLockStock(@RequestBody WareSkuLockVo vo);
}
